pub fn close_window(
state: &Arc<AppState>,
args: &Value,
) -> Result<Value, String>Expand description
Close the window. Args: optional { "label": string }; defaults to “main”.
(Linux/macOS need the label to act on the right window when called from
a non-main window. Windows resolves per-process via find_own_top_level_window.)