Estuve toda la noche con amigos.

English Translation

I was with friends all last night.

i expected the better word to be “estaba” for this sentence. Am I wrong?

The standard choice of tense for an activity that spans over a defined period of time (here: “toda la noche”) is the preterite, so I will at least say that the sentence is fine.