I’m not aware of any way to do this. There is the inactivity time out, but I guess you’re talking about jobs which may still be active. If you want to do this for all users in a subsystem you could end the subsystem after a certain amount of time.
If you end interactive jobs, you may end up with problems with whatever applications the users are running. Why do you want to do this?