macos – What to do after a scammer took control of my mac?

A friend of mine called me in panic mode to tell me that “a message told her her computer was infected, and that she should call the phone number”. So did she. Apparently, a lady made her install Team Viewer and did stuff on her computer, during something like one hour. My friend is using a mac, but I have no idea which one. And I have no idea what the “support lady” did exactly. My apologies, as I don’t have much details.

I told her to:

  1. Disconnect the now most certainly infected mac from her network
  2. Stop using it until it has been completely reinstalled.

My question is : is there anything else than formatting and reinstalling that can reasonably be done in such case?