Synergy between cosmological and laboratory searches in neutrino physics