VSCode Intellisense not working for HTML script tags

I have @types/three installed and this works great for .js files. But not for .html files including a script tag. The script blocks are marked as type=“module”. Anyone else got the same problem and know a solution?