Since Kotlin 2.0.20, if a Kotlin exported function uses a Set / List or Map type, you'll be able to handle those types from Javascript. See Kotlin documentation