How to import a js file from a kotlin/js mixed project?

I am slowly trying to move my project to kotlin but for now I still have many js files. I have tried using a require statement to import a js file into a kotlin file. However when the kotlin app is compiled, it does not copy the js file to the out dir and I receive a file not found error. What is the correct way to do this?

Have you reach any success to connect JS file and write external definitions to it?