Retailer Pacific Sunwear of California is to close up to 200 under-performing stores after securing new credit agreements designed to help turn around the ailing business.