How long have you known your best friend?
Explanation: The present perfect tense is used to inquire about the duration of a state or relationship that started in the past and continues to the present.