Firefighters in New York said Sunday that a successful voluntary evacuation overnight helped them protect about 165 homes near the New Jersey border from a wildfire .