Callback when a tab is closed, provides both index and tab object
final void Function(int index, ModTab tab)? onTabClose;