This document discusses writing browser extensions in Kotlin using KotlinJS. Some key points: - KotlinJS allows Kotlin code to run in browsers and other JS environments like NodeJS. - The WebExtensions API can be accessed from Kotlin code using external declarations or by calling the API dynamically. - The author generated type-safe Kotlin declarations for the WebExtensions API from the JSON schema to get compile-time safety and IDE support. - Code examples demonstrate transforming JS objects to Kotlin classes and generating Kotlin code from the API schema using KotlinPoet.