How to hide tabs with the extension API?

Is it possible to hide tabs using the extension API? What module would provide the functionality for this?