I always notate my functions with JSDocs and my DTOs as jsdoc types which in any modern IDE gives you the same advantages that you would get out of the explicit typescript interface/type.
And Unlike typescript my code doesn't need to be transpiled at all since it is already vanilla JS.