This refers to the entire time they reigned as kings. AT: "the whole time that they reigned over Judah and Israel" (See: [[rc://en/ta/man/translate/figs-explicit]])
It is implied that the army of Baasha first captured Ramah. The full meaning of this statement can be made clear. AT: "captured and fortified Ramah" (See: [[rc://en/ta/man/translate/figs-explicit]])