A theoretical investigation of phonon properties from first-principles calculations is carried out for the half-Heusler compounds NiXSn, , Zr and Hf. The crystal structures are optimised via ab initio calculations within the framework of density functional theory. The phonon properties are retrieved from harmonic and anharmonic interatomic force constants calculations using the finite size displacements method and many-body perturbation theory. A solution to the linearized phonon Boltzmann transport equation is then used to compute the ab initio thermal conductivities. For X = Ti, Zr and Hf, we found 15.4, 13.3 and 15.8 W m−1 K−1 at 300 K, respectively. Thanks to a spectral analysis of the velocities and lifetimes we were able appreciate the differences in the thermal conductivities between the three compounds under study. Our results provide insights to understand the behaviour of the thermal conductivity and therefore to improve the thermoelectric figure of merit for such materials.