Following is the extract from Wikipedia page on Time Dilation
Given a certain frame of reference, and the "stationary" observer described earlier, if a second observer accompanied the "moving" clock, each of the observers would perceive the other's clock as ticking at a slower rate than their own local clock, due to them both perceiving the other to be the one that is in motion relative to their own stationary frame of reference.
Common sense would dictate that, if the passage of time has slowed for a moving object, said object would observe the external world's time to be correspondingly sped up. Counterintuitively, special relativity predicts the opposite. When two observers are in motion relative to each other, each will measure the other's clock slowing down, in concordance with them being in motion relative to the observer's frame of reference.
While this seems self-contradictory, a similar oddity occurs in everyday life. If two persons A and B observe each other from a distance, B will appear small to A, but at the same time A will appear small to B. Being familiar with the effects of perspective, there is no contradiction or paradox in this situation.
In our context although you have stated the equation and the correct idea, you made a huge mistake of mixing up two frames and creating a round trip. A and B represents two entirely different frames related only by a Lorentz transformation. So what you should have written is
$$t_B=\gamma \cdot t_A$$ and $${t'_A}=\gamma \cdot t'_B$$
Alternate way to look at is to realize that the initial point(Earth) and the final point(Proxima Centaura) are at two different lengths for A and B because of lenght contraction.
The above comment is just for a single sided trip.
And a very important part of round trip is the fact that its not symmetric. You may look up Twin Paradox.