The question "What US state makes up most of the northern border?" contains a geographical misconception. No U.S. state forms the northern border of the United States. That boundary is shared entirely with Canada.
People sometimes think of Minnesota's "Northwest Angle" (northernmost point in contiguous US) or Alaska's northern coast. But the international border is with Canada, not another state.
If you meant "Which U.S. state shares the longest border with Canada?", it's Alaska (2,475 km / 1,538 mi). Among contiguous states, Michigan has the longest due to Great Lakes water boundaries (1,160 km / 721 mi).