JSModule external class constructor

The .d.ts file for the Conn class looks like this:

export declare class Conn {
    constructor(botOptions: BotOptions, options?: Partial<ConnOptions>);
}

This is my MCProxy.kt:

@JsModule("@icetank/mcproxy")
@JsNonModule
external class Conn {
    constructor(botOptions: BotOptions)
}

When I try to use the Conn kotlin class by simply creating it, and supplying it with the botOptions, kotlin complains and says that Conn is not a constructor. Here is the full error:

    val conn = Conn(object : BotOptions {

TypeError: Conn is not a constructor

Here is the code I use to create the Conn object:

    val conn = Conn(object : BotOptions {
        override var host: String = "localhost"
        override var port: Int = 25565
        override var username: String = "MyBot"
    })