I just tried running this command:
npx supabase gen types typescript --project-id "$MY_ID" --schema public > types/supabase.ts
Without any success, removed the npx and it works \(-_-)/
\(-_-)/