The main-kts scripts run fine for me on the command line with, for example, ./jvm/main-kts/scripts/kotlinx-html.main.kts but in the IDE there are resolution errors.
Considering this repository of examples is probably a first stop for people interested in kotlin scripting, I would imagine they might open it, see errors, and write it off. Also, I have looked in the settings and asked the AI help, and I honestly still don't know how to get IntelliJ to resolve Serializable in the editor. I tried updating versions in the settings, and gradle.
To reproduce, just clone kotlin-script-examples, and open kotlinx-html.main.kts