The first thing to say is that neither a nuclear powered ion rocket, nor a nuclear pulse rocket such as Orion is capable of sustaining 1g continuous acceleration over lightyears (nor indeed is any kind of rocket, except perhaps one fuelled by antimatter). To take an extreme case, consider a rocket that fuses protons to helium and manages to convert 100% of the energy released into kinetic energy of the exhaust, with no inefficiencies or losses at all. This is impractical for many reasons, but certainly no fission or fusion rocket of any kind will do better.
The four protons mass $6.69048759 \times 10^{-27} kg$ (source google), the alpha particle masses $6.64424. 10^{-27} kg$ so about about $4.6\times 10^{-29}$ is converted to energy, or a bit less than 1% of the fuel mass. That gives us $$1/2 m v^2 = 0.01 m c^2$$ where $v$ is the exhaust velocity of the rocket, so $v$ is about $c/7$. Given that we can use the Tsiolkovsky rocket equation to estimate the mass ration (fuelled rocket over empty rocket) to accelerate to say half the speed of light
$$\log(MR) = 0.5c /0.14c \sim 3$$
so the mass ration is about $e^3$ in the vicinity of 20. If we want to stop again that mass ration goes up to 400. At 1g that would be about 6 months continuous acceleration at 1g, followed (for the proxima trip) by about 8 years of coasting, followed by six months of decceleration. Nothing like continuous boot.
So continuous 1g boost over interstellar distances is not feasible using any kind of fission or fusion rocket and an even slightly realistic mass ratio.
That said, let's assume a magic engine capable of such sustained acceleration and answer your actual question. This thorough UC Riverside tutorial The Relativistic Rocket gives a lot of detail. Selecting a few of the equations from there
$$t = \sqrt{(d/c)^2 + 2 d / a}$$
where $t$ is the time to travel a distance $d$ at constant acceleration $a$ as measured by a stationary observer.
Using units of light years and years, $c = 1$ and $1g = 1.03$ so we can plug in half the distances to Proxima and Trappist (we spend the second half decclerating) and then double again to get 5.87 and 41.5 years.
However as seen from the spaceship a different formula applies:
$$T = c/a \cosh^{-1}\left({ad/c^2} + 1\right)$$
Again putting in the numbers, we get travel times of 3.54 and 7.29 years.
If you want to try other numbers (eg higher accelerations). There is a handy calculator, on line. That gives 3.5 years for the journey to Proxima and 7.3 years to Trappist (at 1g). At 2g you get 2.3 and 4.5 years, more or less.