How to globally pause NavMesh agents?

Hello devs!

Does anyone know a way to pause NavMesh agents in Unity without interacting with each instance?

I need something similar to physics:
Physics.simulationMode = SimulationMode.Script;

I want to pause my simulation without using Time.timeScale = 0, as it would break the menu.

If that’s not possible, what’s the proper way to disable agents and later restore all their data (speed, target, etc.)?

P.S. Pausing physics doesn’t stop agents from moving.