Looking for App for "Smart" quitting of applications

I’m looking for a resource similar to quitter but with one key distinction. I want it to quit applications that have not been focused for more than x minutes.

Justification:
I context switch a lot and this comes with opening a bunch of apps and while I believe my systems do a great job of managing the resources I find myself with a long list of apps running, and when there is a snag, I’m often trying to force quit this extensive list.

I would like an application that if ANY app is idle for more than a defined number of seconds, it will be quit.

Does anyone know of a tool or solution for this?

CleanShot 2020-03-17 at 11.14.52