This word is used here to mark a break in the main story line. Here the author tells background information about the Moabite army preparing to meet the three kings and their armies in battle. (See: [[rc://en/ta/man/translate/writing-background]])
Here the word "kings" refers to both the kings and their armies. Alternate translation: "the kings had come with their armies" or "the kings and their armies had come" (See: [[rc://en/ta/man/translate/figs-synecdoche]])