Passage
Now Jericho was close shut up and fenced, for fear of the children of Israel, and no man durst go out or come in.
Now Jericho was close shut up and fenced, for fear of the children of Israel, and no man durst go out or come in.
Joshua 6:1 Now Jericho was close shut up and fenced, for fear of the children of Israel, and no man durst go out or come in.
Joshua 6:2 And the Lord said to Joshua: Behold I have given into thy hands Jericho, and the king thereof, and all the valiant men.
Joshua 6:3 Go round about the city all ye fighting men once a day: so shall ye do for six days.
The verse centers on "jericho", "close", "shut", "fenced", "fear", "children", "israel", and "durst". It is saying that the verse draws attention to "jericho" and "close", so its meaning should be read from those terms before moving to application.
The next verse adds "And the Lord said to Joshua Behold...", so "jericho" and "close" should be read forward into that movement. In Joshua context, the local focus is covenant, worship, and faithfulness.
A plain takeaway is to answer the verse's own emphasis on "jericho" and "close" with trust shaped by these words, not by a vague optimism outside the passage.