navigation to definitions not working in plain js in VsCode

Trials for both of my Webstorm and Enterprise version of Intellij have exprired, so to be able to work with the JS/HTML/CSS part of my project, I am trying to switch to VsCode for the time being.
Right off the bat, I faced a problem with not being navigate to definitions of anything i.e. not just entities in my code, but even native functions e.g. getElementById():
enter image description here

I’ve found similar questions being asked about this, but looks like in those situations certain frameworks (e.g. Angular) caused trouble for VsCode. My project though is just using plain vanilla JS and nothing fancy.

Does anyone know how to resolve that?

I am using the latest VsCode at the moment i.e. ver 1.89 of April 2024.