Passage
Now Jericho was shut up and was barred, because of the children of Israel: none went out, and none came in.
Now Jericho was shut up and was barred, because of the children of Israel: none went out, and none came in.
Joshua 6:1 Now Jericho was shut up and was barred, because of the children of Israel: none went out, and none came in.
Joshua 6:2 And Jehovah said to Joshua, See, I have given into thy hand Jericho, and the king thereof, [and] the valiant men.
Joshua 6:3 And ye shall go round the city, all the men of war, encompassing the city once. Thus shalt thou do six days.
The verse centers on "jericho", "shut", "barred", "children", "israel", "none", and "went". It is saying that the verse draws attention to "jericho" and "shut", so its meaning should be read from those terms before moving to application.
The next verse adds "And Jehovah said to Joshua See I...", so "jericho" and "shut" 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 "shut" with trust shaped by these words, not by a vague optimism outside the passage.