function __kitty_tab_reset -d "Revert kitty tab color/title to theme defaults"
    set -q KITTY_WINDOW_ID; and type -q kitten
    or return 0
    kitten @ set-tab-color active_bg=NONE active_fg=NONE \
        inactive_bg=NONE inactive_fg=NONE 2>/dev/null
    kitten @ set-tab-title "" 2>/dev/null
end
