close

fun close()(source)

The Window.close() method closes the current window, or the window on which it was called.

MDN Reference