It is not an expression you would hear. The phrase "know in detail" would be more likely to be applied to something like a school subject or the maintenance of a car or some such. The word "detail" tends to refer to matters of fact, in particular down to the smallest fact. So to "know in detail" about car repair means you know every fact (detail) that will result in the car being correctly repaired. Things like what tool to use in a situation, or what oil to use, or how much force to apply tightening a particular fastener, or those sorts of thing.
To know a person "in detail" would thus mean to know things like hair color, shoe size, height, etc. These are not the kind of things that one thinks of in regard to a best friend. You may know these about a best friend (or not) but those are not the things that tend to make one think of somebody as their best friend.
For a best friend you might be thinking of such things as sharing some personal event of great importance. Say a graduation, a marriage, getting or losing a job, buying a house, birth of a child, death of a parent, etc. Or sharing some extended or often repeated group activity. Things like going to the bar every Friday for years, or going camping for two weeks, etc.
Depending on the context you might use several possible words instead of "in detail." Here are just a few.
- Personally to emphasize that you have direct contact
- Intimately to emphasize that you know information that would not be available to "just anybody"
- Closely would be similar to intimately
- Long term to emphasize that you have known this person for many years
There are others. Here is a link to a thesaurus web site entry for "personally." You can easily find the entry for other words and choose what makes sense in context.