A quantity's units arise directly from the quantity's definition. For example,
Impulse due to a constant force F acting for a time $\Delta t$ is $\mathbf F\ \Delta t$.
So if $\mathbf F=20\ \text{N North}$ and $\Delta t = 3.0$ s, then Impulse = 60 Ns North.
The units N and s are parts of the quantities force and time and must be carried along with them as algebraic symbols when the quantities are multiplied together. Far from units being a nuisance, if you forget what 'impulse' means, you can pretty much work this out if you do happen to know that the units are Ns.
A student usually first meets the Planck constant as the proportionality constant, $h$, in the relation $E=hf$ between a photon's frequency, $f$ and its energy, $E$. So if we know that light of frequency $5.090 \times 10^{-34}$ Hz has photons of energy $3.186 \times 10^{-19}$ J, this gives a value for the Planck constant of
$$h=\frac Ef=\frac{3.186 \times 10^{-19}\ \text J}{5.090 \times 10^{-34}\ \text{Hz}}=6.63 \times 10^{-34}\ \text {J Hz}^{-1}= 6.63 \times 10^{-34}\text {J s}$$
The last step, substituting s for Hz$^{-1}$, is perhaps the tricky one. But we know that frequency is number of cycles per unit time, so Hz means s$^{-1}$. But since $\text{Hz}=\text s^{-1}$, then $ \text{Hz}^{-1}=\text s$, showing that $\text{Hz}^{-1}$ can be written neatly as s.
Look, too, at how nicely the units work out when you do the calculation the other way round, using the accepted value for $h$ ... For example, the energy of a photon of light of frequency $4.656 \times 10^{14}$ Hz is
$$E=hf=6.626 \times 10^{-34}\ \text{Js} \times 4.656 \times 10^{14}\ \text{Hz}=3.09 \times 10^{-19}\ \text J.$$
The last step relies on $\text{Hz}=\text s^{-1}$, as established earlier.
The lesson here is that units are our friends. If you are substituting the values of quantities into a formula, substitute the unit as well as the number. When you then evaluate the formula, don't just perform the arithmetical operations on the numbers, but simplify the units, treating them like algebraic quantities. Then the answer will automatically emerge with its correct units – a useful check that you're using the formula correctly.