Currently all scripts for the CLI and Webpack config are written in JS with JSDoc type annotations. While this works with Typescript type-checking it also introduces some friction when writing types.
We should switch entirely to Typescript and use ts-node to run scripts to make package consistent.