How to get VSCode to recognize BabylonJS for code-completion and hints?

I suspect it is because I am using plain Javascript, but the BabylonJS CDN is Typescript.

I have tried with the CDN in my HTML and also by wgetting/storing the babylon.js minified version locally.

Both work just fine and I can load my project in the browser.

But I cannot seem to get VSCode to recognize the BABYLON instance. It also doesn’t suggest methods as I type etc.

Is there a way to get VSCode to recognize BabylonJS?

enter image description here