can't get my commands to work

so i've been experimenting with spell type things and i have tried to make a fireball command which on command blocks work just fine but when i try to import it to VScode (what i use for datapacks) it just wouldn't work at all

Continue to help post