close

suspend fun close(mode: CommandMode = CommandMode.DEFAULT)

Tries to close page, running its beforeunload hooks, if any.