You shoulda whipped out some kung-fu and gone all Jackie Chan on them!
Well, okay, maybe not. 
Glad to hear you’re okay. You may want to think about anything sensitive you may have had in your phone (private numbers, speed-dialed bank, whatever) before you just write it off. My mom had hers stolen once and ended up having to fight several charges and change bank accounts (she hadn’t stored it, but it was in the REcent Calls list, doh!).
Also, a similar experience I had once:
I pull up to my favorite gas station at about 2:00am. At the time I was driving a Crown Victoria. I open the door, step halfway out, and realize there’s a guy in a ski mask standing in the doorway staring at me and holding a VERY LARGE GUN.
I’d like to say I went all Hollywood and saved the day, but no. I simply stared back. Brain… not… processing…
He shouts over his shoulder, “It’s the cops!” and takes off running. Right after him comes another guy, also in a ski mask, who takes off in the other direction. Both of them had guns.
A few seconds after that and the clerk comes out. He and I look at each other, then he says, “You’re not a cop, are you?”
“Nope.”
We both had a good, adrenaline-fueled laugh. He had a hard time explaining to the 911 dispatcher why he was laughing while reporting a robbery, though.
(I was wearing black slacks, black work boots, and a blue shirt under a black jacket that has white and yellow lettering on the arms. I’ve been accused before of being security or a cop when wearing the same clothes. Heh.)