Even unto this day - These words are rightly noted as implying that the narrative was written not long after the occurrences which it records.
Related Commentaries of Joshua 6:25
Joshua 6:25
25 And Joshua saved Rahab the harlot alive, and her father's household, and all that she had; and she dwelleth in Israel even unto this day; because she hid the messengers, which Joshua sent to spy out Jericho.