Filed my 2020 tax return (taxes due), but I meant to file an extension

I filed my taxes last night due to the fact that I had taxes owed.

 

However, I realized that what I really needed to do was to file an extension.

 

In this case, since I already had filed my tax return (Federal + 1 state), do I have to amend them instead?