destroy

external fun destroy(): Promise<Void>(source)

Destroys the window. Behaves like {@link Window.close} but forces the window close instead of emitting a closeRequested event.