install the npm packages with your node package manager
Run npm run types to download the latest version of the PolyTypes type definition
It is recommended to use an IDE with TypeScript support like VSCode or WebStorm
To test your mod, run npm run dev, then open https://w.polymodloader.com in your browser and
import http://localhost:8081 as a pml mod.
Make sure to disable cache mods in PML settings.
Any changes to the TypeScript files will automatically trigger a compile, so you won't have to worry about compiling.