The quickest way in my opinion is to find the Copilot Icon on the right bottom corner of the editor and disable "Code Completions (all files)" and "Code Completions (TypeScript)":
Step 1
Then:
Step 2