Realizing that someone else has access to your wallet is frightening, and panic leads to more mistakes. Blockchain transactions usually cannot be reversed, so the goal of the first hour is not to undo what happened. It is to stop further losses, secure everything connected to you, and record the facts while they are fresh. Work through these steps in order.
The right response depends on what the attacker has.
If you are not sure, assume the worst case: the recovery phrase is exposed.
Stop using the affected wallet and the device it was on. On a different device that you trust, create a brand-new wallet with a new recovery phrase, written down on paper and never typed into a document or saved as a photo. If you own a hardware wallet that was never exposed, it can be a good home for the new wallet.
Then decide whether to move what remains. If only an approval was abused, you can often revoke it and move the remaining assets to the new wallet. If the recovery phrase is exposed, attackers sometimes run automated programs that grab any funds sent to the wallet, including money you send to pay fees. In that case, moving assets may fail, and you could lose more by trying. Get help from someone experienced before spending anything else.
If the cause was an approval, use a reputable approval checker to see which contracts can move your tokens, and revoke the ones you do not recognize. Each revocation costs a network fee. Revoking does not help if the recovery phrase is exposed, because the attacker can simply create new approvals.
Before details fade, write down a timeline: when you noticed, what you clicked or signed, which site you visited, and which tokens left the wallet. Use a block explorer to find the transaction hashes and the receiving addresses, and save them with screenshots. These records help with reports, with accounting or tax questions later, and with warning others accurately.
After a theft becomes public, you may be contacted by people offering to recover your assets for a fee. Treat these offers as scams. Genuine help will not ask for your new recovery phrase, an upfront payment in crypto, or remote access to your device. Once you are secure, look back at how it happened and adjust your habits, such as keeping one wallet for minting and connecting to apps and a separate one for holding finished work.