Mute chats after a certain timing

Is there a way to do this? for work-life sanity