.d.ts to Kotlin?

Is there any way that I can automatically generate Kotlin files with external definitions from npm dependency .d.ts files? For example, I want to try to make the phaser library work with Kotlin, but don’t want to define all the definitions myself.