Treemenu --> tab applications

I’m using a treemenu and tab applications, how do I limit the amount of tabs? For instance I’d like no more than 5 tabs to remain open at any given time, once the 6th tab is opened the oldest tab would automatically close.

I saw this option before and am now looking for it again, but no luck.