Mute all notifications for Microsoft Teams?
You can manually turn off notifications for this app in the settings :

Settings > Notifications > Microsoft Teams > Allow Notifications

There's no built-in way to mute for X hours, but you may be able to do it with Shortcuts.