I use Maven; but if you have a Gradle solution, I’m interested.
UPDATE: Preview of TypeScript definition generation is available in IR backend since Kotlin 1.4
From Kotlin documentaion:
Kotlin/JS compiler can’t produce TypeScript code. There are no plans to generate full TypeScript code. And there are no third-party solutions as far as I know.