Set browser offline

I’m trying to set the browser to offline as we do on “Network” tab on developer tools, but so far unable to find a solution.
Does anyone know how can I do it?