The British and French fought for possession of the island for most of the 18th century , but it finally was confirmed as a British possession in 1783 .