You can mute messages on a Mac with a "Do Not Disturb" setting across your general notifications, or mute individual conversations in iMessage.