After sailing across the Pacific guarding convoys, "Cogswell" arrived off Okinawa on 27 May 1945 for dangerous and demanding duty as radar picket until 26 June. Three days later she rejoined the carrier Task Force 38 for the final series of raids against the Japanese home islands until the close of the war. Arriving in Sagami Wan on 27 August, "Cogswell" pushed on into Tokyo Bay on 2 September for the surrender ceremonies. Cogswell was given the honor of being the first USN ship to enter Tokyo Bay before the surrender. She supported the occupation in the Far East through operations in Japanese waters and escort duty to Korean ports until 5 December, when she sailed from Yokosuka for San Diego, Boston, and Charleston, South Carolina, where she was decommissioned and placed in reserve 30 April 1946.