“well advanced in years.” The same phrase is used in Joshua 13:1. This is a type of inclusion, that the wars of Joshua were basically over and it was after those wars that Joshua divided up the land.
“when Yahweh had given rest to Israel.” The “rest” that Yahweh gave to Israel is a type of the full rest that Jesus will give to his people (cp. Heb. 4:8).