Setup Run node updateDefs.js to download/update the typescript definitions. When you want to set the type of a variable use something like this. /** @param {import("../NetscriptDefinitions").NS} ns */