Let's break down the sentence:
* Como: How, what (in this case, it refers to the characteristics of someone)
* era: was (past tense of "ser")
* Tu: Your
* mejor: best
* amigo: friend
So, the complete sentence asks about the personality or traits of someone's best friend in the past.