fun close(): ERROR CLASS: Symbol not found for js.promise.Promise<ERROR CLASS: Symbol not found for js.core.Void>
(source) Closes the window.
Note this emits a closeRequested event so you can intercept it. To force window close, use {@link Window.destroy}.