In this paper, we formulate a virus infection model with n classes of target uninfected cells, n classes of latent infected cells, n classes of active infected cells, virus particles, and B cells. Three types of time delays and the impairment of B cells are involved. The Well-posedness of the model is demonstrated. Basic reproduction number of infection R 0 > 0 is established, which determines the existence of equilibria as follows; when R 0 is greater than unity, and then the model has two equilibria. Otherwise, the model has only a single equilibrium. The global stability of equilibria is proven using Lyapunov's direct method and applying LaSalle's invariance principle. To support our theoretical results, we have performed some numerical simulations in case of n = 2 where the model can describe the HIV dynamics with two types of target cells, CD4 + T cells and macrophages.