vscode
types can only be used in a .ts file
Not only does flow language support need to be installed, but @builtin TypeScript and JavaScript Language Features needs to be disabled. Thanks Idan Dagan.
module resolution
In older typescript projects, when adding or updating modules that have changed the source of their types, Visual Studio Code may no longer be able to resolve the module. To fix this, explicitly set moduleResolution to node in tsconfig.json:
json{ "compilerOptions": { "moduleResolution": "node", } }
links
Microsoft announces auto-model selection for VS Code that prioritizes Claude Sonnet 4 over GPT-5 for paid users