Closes the extension dialog this code is running in, returning a result to whoever opened it.
Only callable from inside a dialog window; CanKing identifies the window from the caller, so a
dialog cannot close another extension's window. Closing the window by any other means resolves
the opener with no result.
Type Parameters
TResult = unknown
Type of the result value. Must be JSON-serializable.
Closes the extension dialog this code is running in, returning a result to whoever opened it.
Only callable from inside a dialog window; CanKing identifies the window from the caller, so a dialog cannot close another extension's window. Closing the window by any other means resolves the opener with no result.