Count all electrons around the metal: the metal's own electrons, plus the extra electrons from the negative charge, plus 2 from each CO. Ni: 28 + 8 = 36. : 27 + 1 + 8 = 36. : 26 + 2 + 8 = 36. All three reach the krypton count. Each metal centre is (Ni(0), Co(-1), Fe(-2)), so all three are tetrahedral with no unpaired electrons.
CO is a neutral ligand, so the whole charge of the ion sits on the metal: the oxidation states are 0, -1 and -2.
Assuming that the metal in every carbonyl is in the zero oxidation state. That is true only for neutral binary carbonyls such as and .