How to close active Touch Bar group after certain time of inactivity has elapsed

Hi, bet this is super simple but it's eluding me....!

I'm trying to get active Touch Bar groups to close after not being touched for a certain time.

I've tried adding a named trigger to close any active groups every 10 seconds, but as this isn't connected to the inactivity of the group, it can result in the group closing immediately after being touched, if you see what I mean.

Can you shed any light?

Cheers!

this should work, ive never tested it though