For a playground can be excessive, but for production is a nightmare.
Otherwise, you can use only JS with JSDoc and enable the @ts-check.