diff --git a/crates/ely_browser_core/src/state/commands.rs b/crates/ely_browser_core/src/state/commands.rs
index 71cc928..1012eeb 100644
--- a/crates/ely_browser_core/src/state/commands.rs
+++ b/crates/ely_browser_core/src/state/commands.rs
@@ -216,6 +216,9 @@ impl BrowserCore {
"sleep-tab-group" | "sleep tab group" | "discard-tab-group" | "discard tab group" => {
Ok(self.discard_active_tab_group()?.is_some())
}
+ "close-tab-group" | "close tab group" | "archive-tab-group" | "archive tab group" => {
+ Ok(self.close_active_tab_group()?.is_some())
+ }
"downloads" | "open-downloads" | "open downloads" => {
self.open_tab(downloads_url()?);
Ok(true)
diff --git a/crates/ely_browser_core/src/state/tab_groups.rs b/crates/ely_browser_core/src/state/tab_groups.rs
index f733c59..757e8d9 100644
--- a/crates/ely_browser_core/src/state/tab_groups.rs
+++ b/crates/ely_browser_core/src/state/tab_groups.rs
@@ -93,6 +93,25 @@ impl BrowserCore {
Ok(Some(tab_ids.len()))
}
+ pub fn close_active_tab_group(&mut self) -> Result