How to allow or prevent VSCode from removing the file extension in imports
There is a setting called Import Module Specifier Ending that you can tweak:
Tags: vscode