Kościuszko subsequently helped fortify the American bases in North Carolina, before taking part in several smaller operations in the final year of hostilities, harassing British foraging parties near Charleston, South Carolina. After the death of his friend Colonel John Laurens, Kościuszko became engaged in these operations, taking over Laurens's intelligence network in the area. He commanded two cavalry squadrons and an infantry unit, and his last known battlefield command of the war occurred at James Island, South Carolina, on 14 November 1782. In what has been described as the Continental Army's final armed action of the war, he was nearly killed as his small force was routed. A month later, he was among the Continental troops that reoccupied Charleston following the city's British evacuation. Kościuszko spent the rest of the war there, conducting a fireworks display on 23 April 1783, to celebrate the signing of the Treaty of Paris earlier that month.