I'm pretty new to java/typescript in general, but I figured a good way to get started would be a firefox plugin. At the moment, I'm following firefox's second extension tutorial to get familiar with the basics. When entering the javascript for the choose_beast.js file, however, I noticed that anything to do with the browser module, or anything inside of it, was giving me an error saying it's an unresolved module.
Obviously something needs to be imported, but I'm a little stuck on what and how. I found a post on the IntelliJ forums that I believe mentions this issue, but I'm not sure what they mean by adding it as a type. Next stop was youtube, but all of the tutorials for firefox extensions I could find were several years out of date. I resorted to ChatGPT (I know, I know), and it had me download the web-ext package with "npm install -g web-ext" and "npm install --save-dev web-ext", but the package doesn't have anything inside it that exports a browser module.
I'm completely stuck here - not even the Mozilla docs have anything I can find on importing the API, and the example plugins they have don't import it either. How would I go about importing the browser module properly?