first in new project add a tsconfig.json file.
// @ts-check // will show errors in vscode editing window
/** @param {any[]} arr */ // uses JSDoc to force type info, so ts-check can work on JS code in a .ts file
Debug server code using the linux CLI with node.js installed and client code in a browser.
https://code.visualstudio.com/docs/editor/debugging
https://code.visualstudio.com/docs/nodejs/browser-debugging