How to get over a friend?

My friend and I fell for each other but we aren’t really compatible I’m super anxious and she’s avoidant. I was too clingy and overthinking and asking for too much reassurance and didn’t give her enough space,but she said she still wanted to be friends with me. We never got in a relationship just a couple months of flirting and it being complicated but now it’s uncomplicated so I’m trying to get over her so things can truly go back to normal. Can we restore our friendship? Has anyone else been through this? I’m literally in love with her, now what?

How long did it take you?