TIL you can express pretty much all typescript type syntax in JSDoc comments: https://www.typescriptlang.org/docs/handbook/jsdoc-supported-types.html
This gives you all the IDE benefits of typescript, but you don't need a compile step to run your code.