For legacy pax airlines, it was traditionally about ten years for FO, several decades for CA.
Today you can get FO in a few years, maybe even as a new-hire if lucky in the class drops.
CA is hard to say, the current retirements will move things along a bit but I think you're still looking at 15-20 years at a minimum, even if you hit it just right.
I would only worry about wide-body vs. narrow-body if you can get to a legacy by your mid-thirties.